package br.mikhas.lab;

public class CloneTest {
	public static void main(String[] args) throws CloneNotSupportedException {
		JavaBean bean = new JavaBean();
		bean.setNumber(321);
		bean.setName("Teste");

		JavaBean bean2 = new JavaBean();
		bean2.setNumber(123);
		bean2.setName("Teste2");

		bean.setReference(bean2);

		JavaBean clone = (JavaBean) bean.clone();

		System.out.println(clone);
	}
}
